import request from '@/utils/request'

// 查询老师管理列表
export function listManagement(query) {
  return request({
    url: '/teacher/management/list',
    method: 'get',
    params: query
  })
}
// 查询校区管理列表
export function listSchool(query) {
  return request({
    url: '/teacher/school/list',
    method: 'get',
    params: query
  })
}
// 查询学科管理列表
export function listDiscipline(query) {
  return request({
    url: '/teacher/discipline/list',
    method: 'get',
    params: query
  })
}
// 查询老师类型列表
export function listType(query) {
  return request({
    url: '/teacher/type/list',
    method: 'get',
    params: query
  })
}
// 查询上级组长列表
export function listSuperior(query) {
  return request({
    url: '/teacher/management/superior',
    method: 'get',
    params: query
  })
}

// 查询老师管理详细
export function getManagement(id) {
  return request({
    url: '/teacher/management/' + id,
    method: 'get'
  })
}

// 新增老师管理
export function addManagement(data) {
  return request({
    url: '/teacher/management',
    method: 'post',
    data: data
  })
}

// 修改老师管理
export function updateManagement(data) {
  return request({
    url: '/teacher/management',
    method: 'put',
    data: data
  })
}

// 删除老师管理
export function delManagement(id) {
  return request({
    url: '/teacher/management/' + id,
    method: 'delete'
  })
}
